package com.whoru.app;

import com.whoru.beans.FiltroEstablecimiento;
import com.whoru.beans.FiltroUser;
import com.whoru.beans.Globals;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Filtro extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
    	setContentView(R.layout.filtro);
    }
    
    public void OnUsuario (View formu) {
    	Intent intent= new Intent();
  	  	intent.setClass(this, FiltroU.class);
    	startActivity(intent);
    	finish();
    }
    
    public void OnEstablecimiento (View formu) {
    	Intent intent= new Intent();
  	  	intent.setClass(this, FiltroE.class);
    	startActivity(intent);
    	finish();
    }
    
    public void OnBorrar (View formu) {
    	Globals appState = ((Globals)getApplicationContext());
    	appState.setFiltU(new FiltroUser());
        appState.setFiltE(new FiltroEstablecimiento());
    	finish();
    }
}